package com.deng.maintenance.dao;

import java.util.List;

import com.deng.common.vo.OrganizationVo;
import com.deng.maintenance.vo.JiangChengDictVo;
import com.deng.maintenance.vo.VoteValueVo;
import com.deng.maintenance.vo.VoteValueVo2;
import com.deng.maintenance.vo.VoteVsOrganizationVo;

public interface IVoteValue {

	
	
	
	public void insertOrDeleteData(VoteValueVo vo);
	public void searchAllData(VoteValueVo vo);
	
	public List<VoteValueVo> searchAllDataByVoteIdAndDate(String frq_code,String year,int sel);
	public List<VoteValueVo> searchAllDataByOrganizationIdAndDate(int organization_id,String frq_code,String year,int sel);
	public List<VoteValueVo2> searchAllDataByDispenseAndDate(int dispense_id,int vote_id,String frq_code,String year,int sel);
	public List<VoteValueVo> searchAllDataByOperateIdAndDate(int operate_id,String frq_code,String year,int sel);
	public List<VoteValueVo> searchAllDataByAdminIdAndDate(int organization_id,String frq_code,String year,int sel);
	
	public int updateVoteValue(List<VoteValueVo> lst);
	public int loadLastByItem(String frq_code,String year,int sel);
	public int loadLastLingdaoValue(String stat_time_str);
	public int loadOrganizationLastLingdaoValue(String stat_time_str,OrganizationVo orgVo);
	
	
	public int deleteData(VoteValueVo vo);
	public int deleteData2(VoteValueVo2 vo);
	public int deleteDataOperate(VoteValueVo vo);
	public int deleteDataAdmin(VoteValueVo vo);
	
	public int insertData(VoteValueVo vo);
	public int insertData2(VoteValueVo2 vo);	
	public int insertDataOperate(VoteValueVo vo);
	public int insertDataAdmin(VoteValueVo vo);
	
	public int updateValue(VoteValueVo vo);
	public int updateValue2(VoteValueVo2 vo);
	public int updateValueOperate(VoteValueVo vo);
	public int updateValueAdmin(VoteValueVo vo);
	
	public void validData(VoteValueVo vo);
	public int validData2(List<VoteValueVo2> lvo,String user_code);
	public void validDataOperate(VoteValueVo vo);
	public void validDataAdmin(VoteValueVo vo);
	
	public List<JiangChengDictVo> searchJiangchengValue(int organization_id,String stat_time_str);
	public void updateJiangchengValue(OrganizationVo vo,String stat_time_str,List<JiangChengDictVo> lst);
	
	public List<JiangChengDictVo> searchLingdaoValue(int organization_id,String stat_time_str);
	public void updateLingdaoValue(OrganizationVo vo,String stat_time_str,List<JiangChengDictVo> lst);
	
	
	
	
}
